package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.buttons.Button;
import edu.wpi.first.wpilibj.buttons.JoystickButton;
import edu.wpi.first.wpilibj.templates.commands.BridgeArmLower;


public class OI {
    // Process operator interface input here.
    private Joystick leftstick = new Joystick(RobotMap.leftstick_port);
  
 
    public OI(){
        leftstick = new Joystick(RobotMap.leftstick_port);
        //assign based on what button i'm using
        Button lftbtn7 = new JoystickButton(leftstick, 7);
        lftbtn7.whileHeld(new BridgeArmLower());
    }

    
    
    public Joystick getstick() {
        return leftstick;
    }
            /**
     * @return The X value of the left (driving) joystick.
     */
    public double getleftstickX() {
        return leftstick.getX();
    }

    /**
     * @return The Y value of the left (driving) joystick.
     */
    public double getleftstickY() {
        return leftstick.getY();
        
    }

}

  
 
            


